package cn.cpf.spring.action;

import cn.cpf.spring.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller("testAction")
@RequestMapping("/test")
public class TestAction {

    @Autowired
    private TestService testService;

    @RequestMapping(value = "exeInsert", method = RequestMethod.GET)
    public void insert() {
        testService.insert();
    }

}
